
import java.util.Scanner;

public class HomeWork05 {
     static double getArea(double sq){
        return sq*sq;
    }
     static double getArea(double a1,double a2){
        return a1*a2;
    }
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        double sq = scanner.nextDouble();
        double a1 = scanner.nextDouble();
        double a2 = scanner.nextDouble();
        System.out.printf("square area=%.2f\n",getArea(sq));
        System.out.printf("rect area=%.2f\n",getArea(a1,a2));
    }
}
